package com.qf.service2.impl;

import com.qf.domain2.Classes;
import com.qf.mapper2.ClassesMapper;
import com.qf.service2.ClassesService;
import com.qf.utils.MapperUtils;

import java.util.List;

public class ClassesServiceImpl implements ClassesService {

    @Override
    public List<Classes> findAll() {

        ClassesMapper classesMapper = MapperUtils.getMapper(ClassesMapper.class);

        List<Classes> classesList = classesMapper.findAll();

        MapperUtils.close();

        return classesList;
    }
}
